package com.lj.frame.menu.service;

import com.lj.tools.exception.YerException;
import com.lj.frame.menu.entity.Menu;

import java.util.List;

public interface MenuService {

    /**
     * 获取树形菜单
     * */
    List<Menu>  getMenuTree();

    /**
     * 获取树形菜单
     * */
    List<Menu>  getMenuTree(List<Integer> idList);

    /**
     * 删除菜单
     * */
    void remove(Integer id) throws YerException;
    void remove(List<Integer> idList) throws YerException;

    /**
     * 持久化菜单
     * */
    void save(Menu menu) throws YerException;

    Menu info(Integer id);
}
